<?php
#disconnect to mysql
mysql_free_result($result);
mysql_close($link);
?>